package com.cungmua.app.model.response;

import com.cungmua.app.model.District;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.List;

/**
 * Created by kelvin.nguyen on 6/25/14.
 */
public class DistrictResponse extends CungMuaResponse {
    private List<District> districtList;

    public DistrictResponse(@JsonProperty("Msg") String message, @JsonProperty("Code") int code) {
        super(message, code);
    }

    @JsonProperty("Data")
    public void setData(List<District> data) {
        this.districtList = data;
    }

    @Override
    public List<District> getData() {
        return districtList;
    }
}
